/*
 * copyright 2010
 */
package cc.nuboat.easyjsf.managedbean;

import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author nuboat
 */
@SessionScoped
@ManagedBean
public class AjaxManagedBean {

    private String str;
    private String echoStr;

    public AjaxManagedBean() { }

    public String echo() {
        echoStr = "{{{{{{ " + str + " }}}}}}";
        return null;
    }

    public String getStr() {
        return this.str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    public String getEchoStr() {
        return echoStr;
    }

    public String getTimenow() {
        return new Date().toString();
    }

}